package com.example.administrator.yunniuusedcar.ImagerZoom_View;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.Window;
import android.view.WindowManager;

import com.example.administrator.yunniuusedcar.R;

import net.youmi.android.AdManager;
import net.youmi.android.spot.SpotManager;
// 图片详情 左右滑动、放大、缩小  0103
public class PictureViewActivity extends FragmentActivity
{

    // 屏幕宽度
    public static int screenWidth;
    // 屏幕高度
    public static int screenHeight;


    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.activity_picture_view);
        //初始化接口，应用启动的时候调用
        //参数：appId, appSecret, 测试模式
        AdManager.getInstance(this).init("d8a148250e08e3a8", "9f77342e04281a5d", false);
        SpotManager.getInstance(this).loadSpotAds();
        initViews();
    }

    private void initViews() {

        screenWidth = getWindow().getWindowManager().getDefaultDisplay()
                .getWidth();
        screenHeight = getWindow().getWindowManager().getDefaultDisplay()
                .getHeight();

    }


}